// pages/orderCenter/orderCenter.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
      active: 0,
        list:[
            {id:0,state:0,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
            {id:1,state:1,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
            {id:2,state:2,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
            {id:3,state:3,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
            {id:4,state:4,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
            {id:5,state:5,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
            {id:6,state:6,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
        ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onChange(event:any) {
      let mes=[
          {id:0,state:0,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
          {id:1,state:0,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
  ]
      let mes1=[
          {id:0,state:1,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
          {id:1,state:1,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
      ]
      let mes2=[
          {id:0,state:2,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
          {id:1,state:2,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
      ]
      let mes3=[
          {id:0,state:3,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
          {id:1,state:3,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
      ]
      let mes4=[
          {id:0,state:4,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
          {id:1,state:4,money:158.01,num:2,name:'简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介'},
      ]
      const that=this
      switch (event.detail.name){
          case 1: that.setData({list1:mes });break;
          case 2: that.setData({list3:mes1 });break;
          case 3: that.setData({list4:mes2 });break;
          case 4: that.setData({list5:mes3 });break;
          case 5: that.setData({list6:mes4 });break;
      }
      console.log(event.detail.title,event.detail.name);
  },
  onLoad: function (options:any) {
        console.log(options)
  },
    changeClass:function (e:any){
      console.log(e)
    },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})
